<?php if(isset($groupMembers) && count($groupMembers) > 0): ?>
	<div class="module members">
		<h3 class="gradient dark">
			Member Requests
		</h3>
		<div class="inner">
			<ul>
				<?php foreach($groupMembers as $member): ?>
				<li>
					<?php echo render_avatar($member->getUser(), 'thumb', array('class' => 'avatar'))?>
					<div class="info">
						<h4>
							<?php echo link_to($member->getUser()->getFullName(), 'user_profiles/show?id='.$member->getUser()->getId())?>
							<strong><?php echo GroupMemberPeer::$roleTypes[$member->getRole()] ?></strong>
						</h4>
						<p><?php echo ucfirst($member->getUser()->getStanding()) ?>, <?php echo UserPeer::$networks[$member->getUser()->getNetworkId()] ?></p>
						<p>
							<?php echo link_to('Accept', 'group_members/update?id='.$member->getId().'&status='.GroupMemberPeer::APPROVED_STATUS) ?>
							|
							<?php echo link_to('Reject', 'group_members/update?id='.$member->getId().'&status='.GroupMemberPeer::REJECTED_STATUS) ?>
					</div>
				</li>
				<?php endforeach ?>
			</ul>
		</div>
	</div>
<?php endif ?>